package com.chenxi.controller;

import com.chenxi.common.controller.BaseController;
import com.chenxi.service.ISysAuthorityService;
import com.chenxi.util.ResultJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * ${DESCRIPTION}
 *
 * @author Hu Xiaolong
 * @version V0.1
 * @create 2017/12/15
 */
@RestController
@RequestMapping("/authorityApi/")
public class SysAuthorityController extends BaseController {

    @Autowired
    private ISysAuthorityService sysAuthorityService;

    @RequestMapping("page")
    public ResultJson page(@RequestParam Map<String,String> param){
        ResultJson json = super.getSuccess();
        json.setData(sysAuthorityService.selectPageList(param));
        return json;
    }
}
